  -- Hex Lord Malacrass --
function spell0_24239(pUnit, Event) --@Avenging Wrath,n/a--
pUnit:FullCastSpellOnTarget(43430,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24239', 10361, 1)
end
function spell1_24239(pUnit, Event) --@Blind,n/a--
pUnit:FullCastSpellOnTarget(43433,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24239', 10423, 1)
end
function spell2_24239(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(43435,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24239', 2000, 1)
end
function spell3_24239(pUnit, Event) --@Consecration,n/a--
pUnit:FullCastSpellOnTarget(43429,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24239', 20000, 1)
end
function spell4_24239(pUnit, Event) --@Curse of Doom,n/a--
pUnit:FullCastSpellOnTarget(43439,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24239', 30000, 1)
end
function spell5_24239(pUnit, Event) --@Death and Decay,n/a--
pUnit:FullCastSpellOnTarget(61603,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24239', 10000, 1)
end
function spell6_24239(pUnit, Event) --@Drain Power,n/a--
pUnit:FullCastSpellOnTarget(44131,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24239', 872, 1)
end
function spell7_24239(pUnit, Event) --@Explosive Trap,n/a--
pUnit:FullCastSpellOnTarget(43444,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24239', 751, 1)
end
function spell8_24239(pUnit, Event) --@Fire Nova Totem,n/a--
pUnit:FullCastSpellOnTarget(43436,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24239', 10392, 1)
end
function spell9_24239(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(43431,pUnit)
pUnit:RegisterEvent('Sorts_24239', 2000, 1)
end
function spell10_24239(pUnit, Event) --@Freezing Trap,Heal--
pUnit:FullCastSpellOnTarget(43447,pUnit)
pUnit:RegisterEvent('Sorts_24239', 768, 1)
end
function spell11_24239(pUnit, Event) --@Frost Nova,Heal--
pUnit:FullCastSpellOnTarget(43426,pUnit)
pUnit:RegisterEvent('Sorts_24239', 10361, 1)
end
function spell12_24239(pUnit, Event) --@Frostbolt,Heal--
pUnit:FullCastSpellOnTarget(43428,pUnit)
pUnit:RegisterEvent('Sorts_24239', 6000, 1)
end
function spell13_24239(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(43548,pUnit)
pUnit:RegisterEvent('Sorts_24239', 2000, 1)
end
function spell14_24239(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(43451,pUnit)
pUnit:RegisterEvent('Sorts_24239', 2000, 1)
end
function spell15_24239(pUnit, Event) --@Ice Lance,Heal--
pUnit:FullCastSpellOnTarget(43427,pUnit)
pUnit:RegisterEvent('Sorts_24239', 805, 1)
end
function spell16_24239(pUnit, Event) --@Lifebloom,Heal--
pUnit:FullCastSpellOnTarget(43421,pUnit)
pUnit:RegisterEvent('Sorts_24239', 7000, 1)
end
function spell17_24239(pUnit, Event) --@Mark of Blood,Heal--
pUnit:FullCastSpellOnTarget(61606,pUnit)
pUnit:RegisterEvent('Sorts_24239', 10403, 1)
end
function spell18_24239(pUnit, Event) --@Mind Control,Heal--
pUnit:FullCastSpellOnTarget(43550,pUnit)
pUnit:RegisterEvent('Sorts_24239', 20442, 1)
end
function spell19_24239(pUnit, Event) --@Moonfire,Heal--
pUnit:FullCastSpellOnTarget(43545,pUnit)
pUnit:RegisterEvent('Sorts_24239', 12000, 1)
end
function spell20_24239(pUnit, Event) --@Mortal Strike,Heal--
pUnit:FullCastSpellOnTarget(43441,pUnit)
pUnit:RegisterEvent('Sorts_24239', 5404, 1)
end
function spell21_24239(pUnit, Event) --@Plague Strike,Heal--
pUnit:FullCastSpellOnTarget(61600,pUnit)
pUnit:RegisterEvent('Sorts_24239', 808, 1)
end
function spell22_24239(pUnit, Event) --@Psychic Scream,Heal--
pUnit:FullCastSpellOnTarget(43432,pUnit)
pUnit:RegisterEvent('Sorts_24239', 4435, 1)
end
function spell23_24239(pUnit, Event) --@Siphon Soul,Heal--
pUnit:FullCastSpellOnTarget(43498,pUnit)
pUnit:RegisterEvent('Sorts_24239', 764, 1)
end
function spell24_24239(pUnit, Event) --@Slice and Dice,Heal--
pUnit:FullCastSpellOnTarget(43547,pUnit)
pUnit:RegisterEvent('Sorts_24239', 40424, 1)
end
function spell25_24239(pUnit, Event) --@Snake Trap,Heal--
pUnit:FullCastSpellOnTarget(43449,pUnit)
pUnit:RegisterEvent('Sorts_24239', 0, 1)
end
function spell26_24239(pUnit, Event) --@Spell Reflection,Heal--
pUnit:FullCastSpellOnTarget(43443,pUnit)
pUnit:RegisterEvent('Sorts_24239', 5409, 1)
end
function spell27_24239(pUnit, Event) --@Spirit Bolts,Heal--
pUnit:FullCastSpellOnTarget(43382,pUnit)
pUnit:RegisterEvent('Sorts_24239', 817, 1)
end
function spell28_24239(pUnit, Event) --@Spirit Bolts,Heal--
pUnit:FullCastSpellOnTarget(43383,pUnit)
pUnit:RegisterEvent('Sorts_24239', 10000, 1)
end
function spell29_24239(pUnit, Event) --@Thorns,Heal--
pUnit:FullCastSpellOnTarget(43420,pUnit)
pUnit:RegisterEvent('Sorts_24239', 40409, 1)
end
function spell30_24239(pUnit, Event) --@Unstable Affliction,Heal--
pUnit:FullCastSpellOnTarget(43522,pUnit)
pUnit:RegisterEvent('Sorts_24239', 18000, 1)
end
function spell31_24239(pUnit, Event) --@Whirlwind,Heal--
pUnit:FullCastSpellOnTarget(43442,pUnit)
pUnit:RegisterEvent('Sorts_24239', 4000, 1)
end
function spell32_24239(pUnit, Event) --@Whirlwind,Heal--
pUnit:FullCastSpellOnTarget(15578,pUnit)
pUnit:RegisterEvent('Sorts_24239', 724, 1)
end
function spell33_24239(pUnit, Event) --@Wound Poison,Heal--
pUnit:FullCastSpellOnTarget(43461,pUnit)
pUnit:RegisterEvent('Sorts_24239', 15358, 1)
end
function Sorts_24239(pUnit, Event)
choix_sorts_24239 = math.random(0, 33)
if choix_sorts_24239 == 0 then
pUnit:RegisterEvent('spell0_24239', 1, 1)
end
if choix_sorts_24239 == 1 then
pUnit:RegisterEvent('spell1_24239', 1, 1)
end
if choix_sorts_24239 == 2 then
pUnit:RegisterEvent('spell2_24239', 1, 1)
end
if choix_sorts_24239 == 3 then
pUnit:RegisterEvent('spell3_24239', 1, 1)
end
if choix_sorts_24239 == 4 then
pUnit:RegisterEvent('spell4_24239', 1, 1)
end
if choix_sorts_24239 == 5 then
pUnit:RegisterEvent('spell5_24239', 1, 1)
end
if choix_sorts_24239 == 6 then
pUnit:RegisterEvent('spell6_24239', 1, 1)
end
if choix_sorts_24239 == 7 then
pUnit:RegisterEvent('spell7_24239', 1, 1)
end
if choix_sorts_24239 == 8 then
pUnit:RegisterEvent('spell8_24239', 1, 1)
end
if choix_sorts_24239 == 9 then
pUnit:RegisterEvent('spell9_24239', 1, 1)
end
if choix_sorts_24239 == 10 then
pUnit:RegisterEvent('spell10_24239', 1, 1)
end
if choix_sorts_24239 == 11 then
pUnit:RegisterEvent('spell11_24239', 1, 1)
end
if choix_sorts_24239 == 12 then
pUnit:RegisterEvent('spell12_24239', 1, 1)
end
if choix_sorts_24239 == 13 then
pUnit:RegisterEvent('spell13_24239', 1, 1)
end
if choix_sorts_24239 == 14 then
pUnit:RegisterEvent('spell14_24239', 1, 1)
end
if choix_sorts_24239 == 15 then
pUnit:RegisterEvent('spell15_24239', 1, 1)
end
if choix_sorts_24239 == 16 then
pUnit:RegisterEvent('spell16_24239', 1, 1)
end
if choix_sorts_24239 == 17 then
pUnit:RegisterEvent('spell17_24239', 1, 1)
end
if choix_sorts_24239 == 18 then
pUnit:RegisterEvent('spell18_24239', 1, 1)
end
if choix_sorts_24239 == 19 then
pUnit:RegisterEvent('spell19_24239', 1, 1)
end
if choix_sorts_24239 == 20 then
pUnit:RegisterEvent('spell20_24239', 1, 1)
end
if choix_sorts_24239 == 21 then
pUnit:RegisterEvent('spell21_24239', 1, 1)
end
if choix_sorts_24239 == 22 then
pUnit:RegisterEvent('spell22_24239', 1, 1)
end
if choix_sorts_24239 == 23 then
pUnit:RegisterEvent('spell23_24239', 1, 1)
end
if choix_sorts_24239 == 24 then
pUnit:RegisterEvent('spell24_24239', 1, 1)
end
if choix_sorts_24239 == 25 then
pUnit:RegisterEvent('spell25_24239', 1, 1)
end
if choix_sorts_24239 == 26 then
pUnit:RegisterEvent('spell26_24239', 1, 1)
end
if choix_sorts_24239 == 27 then
pUnit:RegisterEvent('spell27_24239', 1, 1)
end
if choix_sorts_24239 == 28 then
pUnit:RegisterEvent('spell28_24239', 1, 1)
end
if choix_sorts_24239 == 29 then
pUnit:RegisterEvent('spell29_24239', 1, 1)
end
if choix_sorts_24239 == 30 then
pUnit:RegisterEvent('spell30_24239', 1, 1)
end
if choix_sorts_24239 == 31 then
pUnit:RegisterEvent('spell31_24239', 1, 1)
end
if choix_sorts_24239 == 32 then
pUnit:RegisterEvent('spell32_24239', 1, 1)
end
if choix_sorts_24239 == 33 then
pUnit:RegisterEvent('spell33_24239', 1, 1)
end
end
function mob24239_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24239', math.random(1500, 3000), 1)
end
function mob24239_Leave(pUnit, Event)
end
function mob24239_Kill(pUnit, Event)
end
function mob24239_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(24239, 1, 'mob24239_Action')
RegisterUnitEvent(24239, 2, 'mob24239_Leave')
RegisterUnitEvent(24239, 3, 'mob24239_Kill')
RegisterUnitEvent(24239, 4, 'mob24239_Die')
